package video

import (
	"fmt"
	"github.com/gin-gonic/gin"
	"handitem/xxb-gin-web/commons/jwtgo"
	"handitem/xxb-gin-web/commons/response"
)

type VideoController struct{}

// 查询video
func (videoController *VideoController) FindVideos(c *gin.Context) {
	claims, _ := c.Get("claims")
	fmt.Println(claims)
	cx := claims.(*jwtgo.CustomClaims)
	fmt.Println(cx.Username)
	fmt.Println(cx.UserId)
	response.Fail(60001, "校验成功", c)
}

// 获取明细
func (videoController *VideoController) GetByID(c *gin.Context) {
	// 绑定参数用来获取/:id这个方式
	//id := c.Param("id")
	// 绑定参数 ?ids=1111
}
